<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .div-card {
            border: 1px gray solid;
            border-radius: 10px;
            padding: 15px;
        }

        .div-card-title {
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .div-card-son {
            width: 100px;
            height: 100px;
            color: darkgray;
            font-size: 12px;
            border: 1px solid darkgray;
        }

        .div-card-son > div {
            width: 100%;
            height: 100%;
            background: pink
        }
    </style>
  </head>
  <body>
    <!--transform-origin属性设置变换原点位置，其属性值若为一个值则可设置为长度、百分比或left、right、top、bottom或center关键字，若为两个值则可分别设置为长度、百分比或left、right或center关键字和长度、百分比或top、bottom或center关键字，若为三个值则第三个值表示Z轴偏移量。默认值原点位置为中心-->
    <div class="div-card">
      <div class="div-card-title">
        transform-origin属性设置变换原点位置
      </div>
      <div class="div-card-body" style="display: flex;column-gap: 100px">
        <div class="div-card-son">
          <div style="transform: rotate(45deg)">默认原点为元素中心</div>
        </div>
        <div class="div-card-son">
          <div style="transform: rotate(45deg);transform-origin: left">transform-origin: left</div>
        </div>
        <div class="div-card-son">
          <div style="transform: rotate(45deg);transform-origin: 0 0">transform-origin: 0 0</div>
        </div>
        <div class="div-card-son">
          <div style="transform: rotate(45deg);transform-origin: left top">transform-origin: left top</div>
        </div>
        <div class="div-card-son">
          <div style="transform: rotate(45deg);transform-origin: left 50px">transform-origin: left 50px</div>
        </div>
      </div>
    </div>
    <br><br><br><br>

    <!--translate属性设置变换元素位移，其属性值若为一个值则可设置为不平移none或X和Y方向的长度或百分比，若为两个值则可分别设置为X方向的长度或百分比和Y方向的长度或百分比，若为三个值则第三个值表示Z方向的长度或百分比-->
    <div class="div-card">
      <div class="div-card-title">
        translate属性设置变换元素位移
      </div>
      <div class="div-card-body" style="display: flex;column-gap: 100px">
        <div class="div-card-son">
          <div style="translate: none">translate: none</div>
        </div>
        <div class="div-card-son">
          <div style="translate: 50px">translate: 50px</div>
        </div>
        <div class="div-card-son">
          <div style="translate: 50px 10px">translate: 50px 10px</div>
        </div>
      </div>
    </div>
    <br>

    <!--rotate属性设置变换元素旋转，其属性值若为一个值则可设置为不旋转none或Z方向的旋转角度，若为两个值则可分别设置为X、Y或Z旋转方向和旋转角度，若为三个值则可分别设置为以原点为中心的向量和旋转角度-->
    <div class="div-card">
      <div class="div-card-title">
        rotate属性设置变换元素旋转
      </div>
      <div class="div-card-body" style="display: flex;column-gap: 100px">
        <div class="div-card-son">
          <div style="rotate: none">rotate: none</div>
        </div>
        <div class="div-card-son">
          <div style="rotate: 90deg">rotate: 90deg</div>
        </div>
        <div class="div-card-son">
          <div style="rotate: 0.25turn">rotate: 0.25turn</div>
        </div>
        <div class="div-card-son">
          <div style="rotate: 1.57rad">rotate: 1.57rad</div>
        </div>
        <div class="div-card-son">
          <div style="rotate: x 45deg;">rotate: x 45deg</div>
        </div>
        <div class="div-card-son">
          <div style="rotate: 1 1 0 45deg">rotate: 1 1 0 45deg</div>
        </div>
      </div>
    </div>
    <br>

    <!--scale属性设置变换元素缩放，其属性值若为一个值则可设置为不缩放none或X和Y方向的缩放比，若为两个值则可分别设置为X方向的缩放比和Y方向的缩放比，若为三个值则第三个值表示Z方向的缩放比-->
    <div class="div-card">
      <div class="div-card-title">
        scale属性设置变换元素缩放
      </div>
      <div class="div-card-body" style="display: flex;column-gap: 100px">
        <div class="div-card-son">
          <div style="scale: none">scale: none</div>
        </div>
        <div class="div-card-son">
          <div style="scale: 2">scale: 2</div>
        </div>
        <div class="div-card-son">
          <div style="scale: 0.5">scale: 0.5</div>
        </div>
        <div class="div-card-son">
          <div style="scale: 2 0.5">scale: 2 0.5</div>
        </div>
        <div class="div-card-son">
          <div style="scale: 2 0.5 2">scale: 2 0.5 2</div>
        </div>
      </div>
    </div>
    <br> <br><br><br>
  </body>
</html>